<%@ include file="/html/common/init.jsp"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<style type="text/css">
<!--
.titulo_campo {
	background-color: #F5F5F5;
	text-align: left;
	padding:0px 2px 0px 2px;;
}
-->
</style>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="/js/funcao.js" charset="ISO-8859-1"></script>
<script>
	function submite(){
		submitForm(document.<portlet:namespace />fm);	
	}
	function submite(str){
		campo = document.<portlet:namespace />fm;
		campo.acao.value = str;
		submitForm(campo);	
	}
</script>
<body>

<%

String tabs2 = ParamUtil.getString(request, "tabs2", "Dados Pessoais");
%>
<form action="<portlet:actionURL windowState="<%= WindowState.MAXIMIZED.toString() %>">
				<portlet:param name="struts_action" value="/ext/contato/acao" />
			  </portlet:actionURL>"
	method="post" name="<portlet:namespace />fm">
<input name="acao" type="hidden" value=""/>
<input name="id_socio" type="hidden" value="<c:out value="${socio.id}"/>">
<table aling="center">
	<tr>
		<td>
		<th colspan="2" class="titulo">Cadastro de Contato</th>
		</td>
	</tr>
	<tr><br>
		<th width="50%" align="right">Nome:<font style="color: red">*</font>&nbsp;</th>
	  <td><input name="nome" type="text" size="40" maxlength="70"
			value="<c:out value="${contato.nome}"/>"></td>
	</tr>
	<tr><br>
		<th width="50%" align="right">Descricao:</th>
	  <td><input name="descricao" type="text" size="40" maxlength="70"
			value="<c:out value="${contato.descricao}"/>"></td>
	</tr>
	<tr><br>
		<th width="50%" align="right">Endereco:</th>
	  <td><input name="endereco" type="text" size="40" maxlength="70"
			value="<c:out value="${contato.endereco}"/>"></td>
	</tr>
	<tr><br>
		<th width="50%" align="right">Telefone:</th>
	  <td><input name="telefone" type="text" size="40" maxlength="70"
			value="<c:out value="${contato.telefone}"/>"></td>
	</tr>
	<tr><br>
		<th width="50%" align="right">Telefone 2:</th>
	  <td><input name="telefone2" type="text" size="40" maxlength="70"
			value="<c:out value="${contato.telefone2}"/>"></td>
	</tr>
	<tr><br>
		<th width="50%" align="right">Email:</th>
	  <td><input name="email" type="text" size="40" maxlength="70"
			value="<c:out value="${contato.email}"/>"></td>
	</tr>
</table>
<table align="left" width="86%" border="0">
<tr>
		<td align="left">
			<input type="button" class="portlet-form-button" value="Salvar" onClick="submite('salvar');">
		</td>
	</tr>	
</table>
</form>
</html>